package com.febers.ihealth.utils

val illnessList: MutableList<String> = ArrayList()

fun MutableList<String>.addOrRemove(s: String, add: Boolean) {
    if (add) {
        log { "List add $s" }
        if (!this.contains(s)) this.add(s)
    } else {
        log { "List remove $s" }
        if (this.contains(s)) this.remove(s)
    }
}